<?php namespace Home\Controller;
use Hdphp\Controller\Controller;
//添加地址控制器
class AddressController extends Controller{
	public function __init(){
		//调用CommonController里面的构造函数
		parent::__init();
		
	}
	public function add(){
		$Addressmodel=new \Common\Model\Address;
		if(IS_POST){
			if(!$Addressmodel->store()) View::error($Addressmodel->getError());
			View::success('添加成功',U('Order/index',array('sids'=>Q('get.sids'))));
		}
  
	}

	
	
	
	
}